package com.ruoyi.project.module.project.domain;

import com.ruoyi.project.module.domain.domain.Domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 接口项目表 api_project
 * 
 * @author ruoyi
 * @date 2018-09-28
 */
public class Project extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 项目ID */
	private Integer apiProjectnameId;
	/** 父项目ID */
	private Integer parentId;
	/** 祖级列表 */
	private String ancestors;
	/** 项目名称 */
	private String projectname;
	/** 项目描述 */
	private String description;
	/** 域名ID */
	private Integer apiDomainId;
	/** 备注 */
	private String remark;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;

	/** 父项目名称 */
	private String parentName;

	/** 显示顺序 */
	private String orderNum;

	/** 错误组 **/
	private Integer errorGroup;

	private Domain domain;

	public Integer getErrorGroup() {
		return errorGroup;
	}

	public void setErrorGroup(Integer errorGroup) {
		this.errorGroup = errorGroup;
	}

	public Domain getDomain() {
		return domain;
	}

	public void setDomain(Domain domain) {
		this.domain = domain;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public void setApiProjectnameId(Integer apiProjectnameId)
	{
		this.apiProjectnameId = apiProjectnameId;
	}

	public Integer getApiProjectnameId() 
	{
		return apiProjectnameId;
	}
	public void setParentId(Integer parentId) 
	{
		this.parentId = parentId;
	}

	public Integer getParentId() 
	{
		return parentId;
	}
	public void setAncestors(String ancestors) 
	{
		this.ancestors = ancestors;
	}

	public String getAncestors() 
	{
		return ancestors;
	}
	public void setProjectname(String projectname) 
	{
		this.projectname = projectname;
	}

	public String getProjectname() 
	{
		return projectname;
	}
	public void setDescription(String description) 
	{
		this.description = description;
	}

	public String getDescription() 
	{
		return description;
	}
	public void setApiDomainId(Integer apiDomainId) 
	{
		this.apiDomainId = apiDomainId;
	}

	public Integer getApiDomainId() 
	{
		return apiDomainId;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apiProjectnameId", getApiProjectnameId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("projectname", getProjectname())
            .append("description", getDescription())
            .append("apiDomainId", getApiDomainId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
